package com.lagou.edu.service;

public interface TokenService {

    String createToken(String email, String password);

    void saveToken(String email, String token);

    String getEmailInfoByToken(String token);

    boolean isRegistered(String email);

    void register(String email, String password);

    boolean validate(String email, String password);
}
